Matthias Clasen [Wed, 29 Nov 2017 04:02:58 +0000 (23:02 -0500)]
Drop gtk_application_is_inhibited
This function returns global session state that may
not be available to applications (e.g. in sandboxed
environments), and is not needed by applications,
so just drop it, instead of keeping a function around
that can't be guaranteed to work.
Matthias Clasen [Wed, 29 Nov 2017 03:52:44 +0000 (22:52 -0500)]
Improve the docs
Document that gtk_application_is_inhibited can't
be guaranteed to work.
Benjamin Otte [Wed, 29 Nov 2017 03:02:24 +0000 (04:02 +0100)]
inspector: Reorganize stack
There are too many stack elements in the main stack. So add a substack
for the pages that display common global state. The appropriate name I
found for it was "Global".
It's used to house the General, Visual, Resources and Statistics pages
for now.
Benjamin Otte [Wed, 29 Nov 2017 02:25:58 +0000 (03:25 +0100)]
inspector: remove visible=TRUE properties
This is the defualt these days.
Matthias Clasen [Tue, 28 Nov 2017 20:03:15 +0000 (15:03 -0500)]
gdk: Add some missing autocleanups
GdkMonitor and GdkSeat were missing here.
Rico Tzschichholz [Tue, 28 Nov 2017 14:20:14 +0000 (15:20 +0100)]
Fix some parameter name mismatches to make g-ir-scanner happier
Carlos Garnacho [Mon, 27 Nov 2017 20:24:54 +0000 (21:24 +0100)]
gdkseatdefault: Use TABLET_STYLUS capability for styli/erasers/cursors
Those are devices created for drawing tablets, so using the "pointer"
capability is far too generic.
Carlos Garnacho [Mon, 27 Nov 2017 18:51:38 +0000 (19:51 +0100)]
gdk/wayland: Emit GdkSeat::device-added/removed
Those were never sent in this backend...
Matthias Clasen [Mon, 27 Nov 2017 17:34:08 +0000 (12:34 -0500)]
Fix up _gtk_widget_list_devices
When I rewrote that function to not use GdkDeviceManager,
I overlooked that the window filtering needs to apply
to the master pointer as well, as other code assumes
that _gtk_widget_get_device_window will return non-NULL
on the devices in the list. Fix this.
Matthias Clasen [Mon, 27 Nov 2017 15:55:32 +0000 (10:55 -0500)]
Fix a typo
The signal is called ::unpaired-release.
Милош Поповић [Mon, 27 Nov 2017 10:38:07 +0000 (10:38 +0000)]
Update Serbian translation
Matthias Clasen [Mon, 27 Nov 2017 00:52:01 +0000 (19:52 -0500)]
listbox: Handle unpaired releases as well
Same as for flowbox in the previous commit.
Carlos Garnacho [Tue, 21 Nov 2017 21:35:31 +0000 (22:35 +0100)]
gtkflowbox: Activate items on ::unpaired-release
If the flowbox is single-click.
https://bugzilla.gnome.org/show_bug.cgi?id=789163
Carlos Garnacho [Tue, 21 Nov 2017 19:14:52 +0000 (20:14 +0100)]
gtkgesturemultipress: Add ::unpaired-release signal
This signal will be emitted whenever the gesture received a
button release or touch end event without a pairing button
press or touch begin. This usually happens when grabs transfer
input from one widget to another mid-press.
https://bugzilla.gnome.org/show_bug.cgi?id=789163
Matthias Clasen [Mon, 27 Nov 2017 00:40:28 +0000 (19:40 -0500)]
wayland: Don't provide gsetting if dconf is not available
This makes gtk+ fall back to reading ~/.config/gtk-3.0/settings.ini
on systems with Wayland, but without dconf (do those exist?).
https://bugzilla.gnome.org/show_bug.cgi?id=790201
Kjell Ahlstedt [Mon, 13 Nov 2017 11:48:57 +0000 (12:48 +0100)]
GtkWindow: Fix the down-scaling in icon_from_list()
Must use floating-point division to get the correct scale factors.
cairo_set_source_surface() must be called after cairo_scale().
https://bugzilla.gnome.org/show_bug.cgi?id=790287
Piotr Drąg [Sat, 25 Nov 2017 16:32:53 +0000 (17:32 +0100)]
Update POTFILES.in
Matthias Clasen [Sat, 25 Nov 2017 13:12:48 +0000 (08:12 -0500)]
wayland: Drop GdkWaylandDeviceManager
This object had no functionality left.
Matthias Clasen [Sat, 25 Nov 2017 13:25:15 +0000 (08:25 -0500)]
Drop GdkDeviceManager entirely
Nothing uses it anymore.
Matthias Clasen [Sat, 25 Nov 2017 13:24:17 +0000 (08:24 -0500)]
Drop the ::device-manager property
Not used for anything anymore.
Matthias Clasen [Sat, 25 Nov 2017 13:23:25 +0000 (08:23 -0500)]
x11: Stop deriving from GdkDeviceManager
We can just derive from GObject.
Matthias Clasen [Sat, 25 Nov 2017 13:22:12 +0000 (08:22 -0500)]
wayland: Stop deriving from GdkDeviceManager
We can just derive from GObject.
Matthias Clasen [Sat, 25 Nov 2017 13:21:37 +0000 (08:21 -0500)]
win32: Stop deriving from GdkDeviceManager
We can just derive from GObject.
Matthias Clasen [Sat, 25 Nov 2017 13:20:57 +0000 (08:20 -0500)]
quartz: Stop deriving from GdkDeviceManager
We can just derive from GObject.
Matthias Clasen [Sat, 25 Nov 2017 04:00:40 +0000 (23:00 -0500)]
Drop the GdkDeviceManager::display property
Move this to the backends, and stop deriving
from GdkDeviceManager.
Matthias Clasen [Sat, 25 Nov 2017 03:33:12 +0000 (22:33 -0500)]
Remove the get_client_pointer vfunc
Matthias Clasen [Sat, 25 Nov 2017 02:26:20 +0000 (21:26 -0500)]
Drop the get_client_pointer vfunc
There is no api using this anymore.
Matthias Clasen [Sat, 25 Nov 2017 02:20:52 +0000 (21:20 -0500)]
Drop the list_devices vfunc
We no longer have api that uses this.
Matthias Clasen [Sat, 25 Nov 2017 02:08:40 +0000 (21:08 -0500)]
Drop gdk_device_manager_list_devices
It is not used and GdkDeviceManager is going away.
Matthias Clasen [Sat, 25 Nov 2017 01:51:19 +0000 (20:51 -0500)]
gdk: Drop devicemanager signals
Nobody is emitting them anymore.
Matthias Clasen [Sat, 25 Nov 2017 01:42:09 +0000 (20:42 -0500)]
wayland: Stop emitting devicemanager signals
Nobody is listening to these signals anymore.
Matthias Clasen [Sat, 25 Nov 2017 01:38:47 +0000 (20:38 -0500)]
x11: Stop emitting devicemanager signals
Nobody is listening to these anymore, so there
is no point in emitting them.
Matthias Clasen [Fri, 24 Nov 2017 17:19:35 +0000 (12:19 -0500)]
display: Drop the device_manager for good
This is now entirely the backends responsibility.
Matthias Clasen [Fri, 24 Nov 2017 17:25:49 +0000 (12:25 -0500)]
wayland: Stop using display->device_manager
We can keep the device manager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 17:03:36 +0000 (12:03 -0500)]
quartz: Stop using display->device_manager
We can keep the device manager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 16:56:42 +0000 (11:56 -0500)]
win32: Stop using gdk_display_get_device_manager
We can keep the devicemanager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 14:14:17 +0000 (09:14 -0500)]
x11: Stop using gdk_display_get_device_manager
We can keep the displaymanager in the backend.
Matthias Clasen [Fri, 24 Nov 2017 03:20:50 +0000 (22:20 -0500)]
broadway: Remove devicemanager implementation
It is not used and not needed anymore.
Matthias Clasen [Fri, 24 Nov 2017 03:17:30 +0000 (22:17 -0500)]
broadway: Stop using GdkDeviceManager
We can use the GdkSeat apis for this.
Matthias Clasen [Fri, 24 Nov 2017 16:31:18 +0000 (11:31 -0500)]
display: Stop using devicemanager internally
We can just use the seats to find out about device removals.
Matthias Clasen [Thu, 23 Nov 2017 21:28:00 +0000 (16:28 -0500)]
Drop GdkDeviceManager APIs
No longer used outside of the backends.
Matthias Clasen [Thu, 23 Nov 2017 21:23:41 +0000 (16:23 -0500)]
Don't mention GdkDeviceManager in docs
It is going away.
Matthias Clasen [Thu, 23 Nov 2017 21:21:37 +0000 (16:21 -0500)]
Drop support for setting event masks for floating devices
These are very rarely needed, and are X11-specific.
If it turns out that somebody needs this, it can come
back as X11-specific functionality.
Matthias Clasen [Thu, 23 Nov 2017 21:11:48 +0000 (16:11 -0500)]
gdk: Move gdk_disable_multidevice tot he X11 backend
This api only ever did something for X11, so move
it there. Update the docs and adapt the only caller.
Matthias Clasen [Thu, 23 Nov 2017 20:43:52 +0000 (15:43 -0500)]
Drop gdk_display_get_device_manager API
GdkDeviceManager is being replaced by GdkSeat.
Matthias Clasen [Thu, 23 Nov 2017 20:40:12 +0000 (15:40 -0500)]
treeview: Don't use GdkDeviceManager
We can just as well use GdkSeat to enumerate (attached)
devices. Note that this change excludes floating devices
from consideration.
This keeps the copy-pasted code in sync with gtkwindow.c
Matthias Clasen [Thu, 23 Nov 2017 20:39:19 +0000 (15:39 -0500)]
window: Don't use GdkDeviceManager
We can just as well use GdkSeat to enumerate (attached)
devices. Note that this change excludes floating devices
from consideration.
Matthias Clasen [Thu, 23 Nov 2017 20:25:13 +0000 (15:25 -0500)]
widget: Don't use GdkDeviceManager
We can just as well use GdkSeat to enumerate the devices.
Matthias Clasen [Sat, 25 Nov 2017 16:01:38 +0000 (11:01 -0500)]
Fix the build
A stray GdkScreen leftover.
Matthias Clasen [Sat, 25 Nov 2017 13:37:49 +0000 (08:37 -0500)]
gdk: Remove a leftover GdkScreen
Matthias Clasen [Fri, 24 Nov 2017 13:51:22 +0000 (08:51 -0500)]
gsk: Quiet a compiler warning
We insist on handling all cases in a switch, nowadays.
Daniel Boles [Thu, 23 Nov 2017 17:21:36 +0000 (17:21 +0000)]
Entry:show-emoji-icon is in GTK+ 3 too
Document the earliest version reached.
Daniel Boles [Thu, 23 Nov 2017 17:17:08 +0000 (17:17 +0000)]
Be more specific in ::insert-emoji Since tag
I had been unsure whether to include the minor version, but
:show-emoji-icon already did, so do the same here to match.
Alexander Larsson [Thu, 23 Nov 2017 09:45:27 +0000 (10:45 +0100)]
broadway: Disable fallback spew by default
Alexander Larsson [Thu, 23 Nov 2017 09:22:23 +0000 (10:22 +0100)]
broadway: Roundtrip each update to rate limit redraw
Alexander Larsson [Wed, 22 Nov 2017 22:42:29 +0000 (23:42 +0100)]
broadway: Handle cairo nodes
This means we can directly upload these as textures, rather than
create a new surface and draw it into that. We still have to upload,
but there isn't a lot we can do about this as for these nodes
we generally redraw everything each time.
Alexander Larsson [Wed, 22 Nov 2017 17:24:20 +0000 (18:24 +0100)]
broadway: Handle texture gsd nodes
Alexander Larsson [Wed, 22 Nov 2017 16:40:39 +0000 (17:40 +0100)]
broadway: Add clip node
Alexander Larsson [Wed, 22 Nov 2017 16:29:43 +0000 (17:29 +0100)]
broadway: Don't log cache hits
Alexander Larsson [Wed, 22 Nov 2017 16:28:53 +0000 (17:28 +0100)]
broadway: Cache color translated textures
These happen a lot due to the recolored symbolics
Alexander Larsson [Wed, 22 Nov 2017 16:28:44 +0000 (17:28 +0100)]
broadway: Add opacity node
Alexander Larsson [Wed, 22 Nov 2017 15:53:15 +0000 (16:53 +0100)]
broadway: Add shadow node
Alexander Larsson [Wed, 22 Nov 2017 14:39:09 +0000 (15:39 +0100)]
broadway: Add node cache for text
Alexander Larsson [Wed, 22 Nov 2017 11:37:39 +0000 (12:37 +0100)]
broadway: Remove inflate code
This is not used anymore
Alexander Larsson [Wed, 22 Nov 2017 11:31:36 +0000 (12:31 +0100)]
broadway: Add linear gradient node
Alexander Larsson [Wed, 22 Nov 2017 09:32:47 +0000 (10:32 +0100)]
broadway: Add RoundedClip node
Alexander Larsson [Wed, 22 Nov 2017 08:59:22 +0000 (09:59 +0100)]
broadway: Add inset shadow
Alexander Larsson [Wed, 22 Nov 2017 08:47:47 +0000 (09:47 +0100)]
broadway: Add outset shadow node
Alexander Larsson [Wed, 22 Nov 2017 07:48:41 +0000 (08:48 +0100)]
broadway: Fix border node positioning
Alexander Larsson [Tue, 21 Nov 2017 22:01:00 +0000 (23:01 +0100)]
broadway: Add border node
Alexander Larsson [Tue, 21 Nov 2017 21:58:31 +0000 (22:58 +0100)]
broadway: Clean up node parser
Alexander Larsson [Tue, 21 Nov 2017 20:56:06 +0000 (21:56 +0100)]
broadway: Add color nodes
Alexander Larsson [Tue, 21 Nov 2017 20:22:04 +0000 (21:22 +0100)]
broadway: Fix input events
Alexander Larsson [Tue, 21 Nov 2017 19:28:56 +0000 (20:28 +0100)]
broadway: Don't swap node trees until all images are loaded
Alexander Larsson [Tue, 21 Nov 2017 19:01:57 +0000 (20:01 +0100)]
broadway: Rewrite textures in nodes to global
Alexander Larsson [Tue, 21 Nov 2017 18:49:29 +0000 (19:49 +0100)]
broadway: Remove remaining unused window_update code
Alexander Larsson [Tue, 21 Nov 2017 18:33:12 +0000 (19:33 +0100)]
broadway: Initial version of using actual render nodes
Alexander Larsson [Sat, 18 Nov 2017 19:36:57 +0000 (20:36 +0100)]
broadway: Use textures to configure window contents
Instead of using the old buffer code, just use textures to define the
window contents.
Alexander Larsson [Sat, 18 Nov 2017 16:36:38 +0000 (17:36 +0100)]
broadway: Actually upload textures to client
Alexander Larsson [Sat, 18 Nov 2017 15:47:43 +0000 (16:47 +0100)]
broadway: Introduce global ids for the textures
Alexander Larsson [Fri, 17 Nov 2017 15:40:06 +0000 (16:40 +0100)]
broadway: Add support for uploading textures to daemon
Alexander Larsson [Fri, 17 Nov 2017 14:57:28 +0000 (15:57 +0100)]
broadway: Support fd passing in protocol
This will be used to pass buffers
Alexander Larsson [Fri, 17 Nov 2017 14:22:06 +0000 (15:22 +0100)]
broadwayd: Read using socket API
This changes nothing, but it allows us to later recieve
unix messages and thus fd passing
Alexander Larsson [Fri, 17 Nov 2017 13:16:01 +0000 (14:16 +0100)]
broadway: Only support (non-abstract) sockets
We want to use fd passing, so drop tcp
Alexander Larsson [Fri, 17 Nov 2017 11:04:02 +0000 (12:04 +0100)]
broadway: Add GskBroadwayRenderer
This is a custom renderer for broadway windows, although at the
moment it doesn't really do anything other than the old cairo
fallbacks.
Daniel Boles [Wed, 22 Nov 2017 22:35:25 +0000 (22:35 +0000)]
Add Since to ::insert-emoji, and some trivialities
Document when these keybinding signals were added.
Matthias Clasen [Wed, 22 Nov 2017 21:47:43 +0000 (16:47 -0500)]
text view: Support the Emoji chooser
Similar to GtkEntry, add an "Insert Emoji" context
menu item, and add the same keybindings. We don't
add the icon here, since it is not clear where it
would go.
https://bugzilla.gnome.org/show_bug.cgi?id=790029
Matthias Clasen [Wed, 22 Nov 2017 21:46:49 +0000 (16:46 -0500)]
Fix indentation mishap
Daniel Boles [Wed, 22 Nov 2017 20:27:26 +0000 (20:27 +0000)]
SpinButton: Explain meaning of nullable Adjustment
configure() marked the @adj argument as (allow-none) but did not explain
what passing NULL would do. Fix that, and move it to (nullable) as well.
Daniel Boles [Wed, 22 Nov 2017 19:19:27 +0000 (19:19 +0000)]
doc: Replace uses of #NULL with %NULL
Daniel Boles [Wed, 22 Nov 2017 18:57:48 +0000 (18:57 +0000)]
CellRendererPixbuf: Link stock-size doc → IconSize
Add a doc comment for :stock-size in order to link to GtkIconSize.
Daniel Boles [Tue, 21 Nov 2017 10:52:35 +0000 (10:52 +0000)]
doc: TextLayout: Add missing (out) annotations
and move from (allow-none) to (optional)
Bastien Nocera [Wed, 22 Nov 2017 14:23:52 +0000 (15:23 +0100)]
frame-clock: Fix typo in API documentation
Chun-wei Fan [Fri, 17 Nov 2017 07:27:10 +0000 (15:27 +0800)]
GDK/Win32: Fix build after GDK Root Window and DND changes
Ensure that things build again, and instead use the Windows API to
acquire the screen dimensions (note: this may need to be scaled for
HiDPI, but since I do not own a WinTab-based device, I will need to
keep the dimensions as-is for now).
Also update the gdkdnd-win32.c code to use formats rather than targets.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Chun-wei Fan [Mon, 20 Nov 2017 07:05:28 +0000 (15:05 +0800)]
gtk/gskpango.c: Use g_snprintf()
This fixes the build of GTK+ master on Visual Studio 2013 (and possibly
others) as snprintf() may not be supported even if the required C99
features are supported by the compiler.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Chun-wei Fan [Mon, 20 Nov 2017 05:05:18 +0000 (13:05 +0800)]
gtk/gtkseclection.c: Don't build X11 items unconditionally
Limit building the X11 items only when GDK_WINDOWING_X11 is defined.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Chun-wei Fan [Fri, 17 Nov 2017 07:30:20 +0000 (15:30 +0800)]
gtkimcontextime.c: Fix call to gtk_style_context_get()
The state argument was removed in commit
1518fe0 (API: stylecontext:
Remove state argument from getters), but we missed updating this file
until commit
5b94fe6 (stylecontext: Make first property name explicit),
as the compiler did not issue any warnings on the (now-defunct) usage.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Benjamin Otte [Mon, 20 Nov 2017 14:58:17 +0000 (15:58 +0100)]
gdk: Add GType support to GdkContentFormats
This is not used by anything yet, but add it now, so people looking at
this new code can make sense of it.
Plus, the documentation mentions it, so better have the docs make sense.
It will be used once we add support for conversions to GDK and allow
doing cipboard/dnd by GValue.
Benjamin Otte [Mon, 20 Nov 2017 03:42:43 +0000 (04:42 +0100)]
gdk: Sanitize GdkContentFormats API
Make sure the API reflects the idea that GdkContentFormats is a set
containing mime types. In particular, treat the object itself as a
plural - it's named content format`S' after all - and therefor use
the correct verb form.
Also make GdkContentFormats keep an array instead of a list, now that
it's immutable.
Benjamin Otte [Mon, 20 Nov 2017 02:54:42 +0000 (03:54 +0100)]
gdk: Make GdkContentFormats immutable